package androidx.appcompat.app;

import android.content.Context;
import android.database.Cursor;
import android.view.View;
import android.view.ViewGroup;
import android.widget.CheckedTextView;
import android.widget.CursorAdapter;
import androidx.appcompat.app.AlertController.RecycleListView;
import androidx.appcompat.app.AlertController.a;

class AlertController$AlertParams$2 extends CursorAdapter {
    private final int mIsCheckedIndex;
    private final int mLabelIndex;
    final /* synthetic */ a this$0;
    final /* synthetic */ AlertController val$dialog;
    final /* synthetic */ RecycleListView val$listView;

    AlertController$AlertParams$2(a aVar, Context context, Cursor cursor, boolean z, RecycleListView recycleListView, AlertController alertController) {
        this.this$0 = aVar;
        this.val$listView = recycleListView;
        this.val$dialog = alertController;
        super(context, cursor, z);
        Cursor cursor2 = getCursor();
        this.mLabelIndex = cursor2.getColumnIndexOrThrow(this.this$0.ˎˏ);
        this.mIsCheckedIndex = cursor2.getColumnIndexOrThrow(this.this$0.ˑ);
    }

    public void bindView(View view, Context context, Cursor cursor) {
        ((CheckedTextView) view.findViewById(16908308)).setText(cursor.getString(this.mLabelIndex));
        this.val$listView.setItemChecked(cursor.getPosition(), cursor.getInt(this.mIsCheckedIndex) == 1);
    }

    public View newView(Context context, Cursor cursor, ViewGroup viewGroup) {
        return this.this$0.ॱ.inflate(this.val$dialog.ˋॱ, viewGroup, false);
    }
}
